import request from '@/utils/request'

/*------get附件数据--------*/
export function getPaperFileData(query) {
  return request({
    url: '/api/work/filelist/',
    method: 'get',
  })
}

export function getPaperFileByIdData(obj) {
  return request({
    url: '/api/work/filelist/paperId_get_file/'+obj.id+'/',
    method: 'get',
    data:obj
  })
}

/*------add附件数据--------*/
export function addPaperFileData(data) {
  return request({
    url: '/api/system/dept/',
    method: 'post',
    data
  })
}
/*------delete附件数据--------*/
export function delPaperFileData(pk) {
  return request({
    url: '/api/work/filelist/'+pk+'/',
    method: 'delete',
  })
}
